package com.lm.liaoming;

import android.app.Activity;

/**
 * 韦敏敏
 */

public class ActivtyManager {


    /**
     * 添加一个Activity
     * @param activity
     */
    public static void addActivity(Activity activity){
        ActivityTask.addActivity(activity);
    }

    /**
     * 关闭当前的Activity
     */
    public static void finishCurrentActivity(){
        ActivityTask.finishCurrentActivity();
    }

    /**
     * 关闭所有的Activity
     */
    public static void finishAllActivity(){
        ActivityTask.finishAllActivity();
    }

    /**
     * 关闭某一个Activity
     * @param activity
     */
    public static void finishActivity(Class activity){
        ActivityTask.finishActivity(activity);
    }

    /**
     * 关闭非当前的Activity
     * @param activity
     */
    public static void finishOtherActivity(Activity activity){
        ActivityTask.finishOtherActivity(activity);
    }
}
